<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <script type="text/javascript">
function altRows(id){
	if(document.getElementsByTagName){  
		
		var table = document.getElementById(id);  
		var rows = table.getElementsByTagName("tr"); 
		 
		for(i = 0; i < rows.length; i++){          
			if(i % 2 == 0){
				rows[i].className = "evenrowcolor";
			}else{
				rows[i].className = "oddrowcolor";
			}      
		}
	}
}

window.onload=function(){
	altRows('alternatecolor');
}
</script>


<!-- CSS goes in the document HEAD or added to your external stylesheet -->
<style type="text/css">
table.altrowstable {
	font-family: verdana,arial,sans-serif;
	font-size:10px;
	color:#333333;
	border-width: 1px;
	border-color: #a9c6c9;
	border-collapse: collapse;
}
table.altrowstable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
}
table.altrowstable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
}
.oddrowcolor{
	background-color:#d4e3e5;
}
.evenrowcolor{
	background-color:#c3dde0;
}
td{
			text-align:center;
			border-left: 1px solid black;
			border-top: 1px solid black;
		}
		.td1{
			font-size: 10px;
			font-family: '楷体';
			text-align: left;
		}
		.body1{
			text-align: center;
		}
		.div1{
			text-align: center;
		}
		.hh{
			margin: 2%;
		}
</style>


</head>
  
  <body class="body1" style="text-align: center">
  	<div class="div1">
   		<table    class="altrowstable" id="alternatecolor" style="width: 100%">
   			<tr >
   				<td colspan="6"><a href="${wordUrl}"><h2 class="hh">工作简报</h2>(点击下载word)</a></td>
   			</tr>
   			<tr>
   				<td  colspan="6"><h3 class="hh">基本信息</td>
   			</tr>
   			<tr>
   				<td>任务名称</td>
   				<td class="td1">${A}</td>
   				<td>任务地址</td>
   				<td class="td1">${D}</td>
   				<td>任务分类</td>
   				<td class="td1">${C}</td>
   			</tr>
   			<tr>
   				<td>任务描述</td>
   				<td colspan="3" class="td1">${B}</td>
   				<td>创建人</td>
   				<td class="td1">${F}</td>
   			</tr>
   			<tr>
   				<td>预计结束时间</td>
   				<td colspan="2" class="td1">${G}</td>
   				<td>创建时间</td>
   				<td colspan="2" class="td1">${J}</td>
   			</tr>
   			<tr>
   				<td>实际结束时间</td>
   				<td colspan="2" class="td1">${I}</td>
   				<td>完成状态</td>
   				<td colspan="2" class="td1">${E}</td>
   			</tr>
   			<tr>
   				<td colspan="6"><h3 class="hh">现场勘察</td>
   			</tr>
   			<tr>
   				<td>勘察名称</td>
   				<td class="td1">${L}</td>
   				<td >勘察负责人</td>
   				<td class="td1">${P}</td>
   				<td>停电范围</td>
   				<td class="td1">${N}</td>
   			</tr>
   			
   			<tr>
   				<td>安全措施</td>
   				<td colspan="2" class="td1">${O}</td>
   				<td>勘察时间</td>
   				<td colspan="2" class="td1">${K}</td>
   			</tr>
   			<tr>
   				<td>勘察内容</td>
   				<td colspan="5" class="td1">${M}</td>
   			</tr>
   			<tr>
   				<td colspan="6"><h3 class="hh">会议录音</td>
   			</tr>
   			<tr>
   				<td>班前会议</td>
   				<td colspan="2" class="td1">${Q}</td>
   				<td>班后会议</td>
   				<td colspan="2" class="td1">${R}</td>
   			</tr>
   			<tr>
   				<td colspan="6"><h3 class="hh">问题处理</td>
   			</tr>
   				<c:forEach items="${wdPhenom}" var="wdPhenoms">
	   				<tr>
	   					<td colspan="2">问题现象</td>
	   					<td colspan="4" class="td1" >${wdPhenoms}</td>
	   				</tr>
   				</c:forEach>
	   			<tr>
	   				<td>问题原因</td>
	   				<td>处理方式</td>
	   				<td>是否解决</td>
	   				<td>负责人</td>
	   				<td colspan="2">处理时间</td>
	   			</tr>
	   			<c:forEach items="${wordAnalysisVo}" var="wordAnalysis">
	   				<tr >
		   				<td class="td1" >${wordAnalysis.reason}</td>
		   				<td class="td1">
							<c:choose>
							   <c:when test="${wordAnalysis.method eq null}">  
							      已拟定    
							   </c:when>
							   <c:otherwise> 
							     ${wordAnalysis.method}
							   </c:otherwise>
							</c:choose>
		   				</td>
		   				<td class="td1">${wordAnalysis.status}</td>
		   				<td class="td1">${wordAnalysis.uName}</td>
		   				<td class="td1" colspan="2">${wordAnalysis.creatTime}</td>
		   			</tr>
	   			</c:forEach>
   			<tr>
   				<td colspan="6"><h3 class="hh">签到信息</td>
   			</tr>
   			<tr>
   				<td colspan="2">签到人员</td>
   				<td colspan="2">签到时间</td>
   				<td colspan="2">签到地址</td>
   			</tr>
   			<c:forEach items="${wordPeopleVo }" var="wordPeopleVo2">
   			<tr>
   				<td colspan="2" class="td1">${wordPeopleVo2.uName}</td>
   				<td colspan="2" class="td1">${wordPeopleVo2.creatTime}</td>
   				<td colspan="2" class="td1">${wordPeopleVo2.address}</td>
   			</tr>
   			</c:forEach>

   			<tr>
   				<td colspan="6"><h3 class="hh">图片</td>
   			</tr>
   			<c:forEach items="${imgPath }" var="imgPath2">
   			<tr>
   				<td colspan="6" class="td1" style="text-align: center">
   					<img  src="${imgPath2}"  height="200px">
   				</td>
   			</tr>
   			</c:forEach>
   		</table>
   		</div>
  </body>
</html>
